package com.cictec.middleware.tde.rm.protocol;

import java.nio.ByteBuffer;

import org.apache.mina.core.session.IoSession;

import com.cictec.middleware.tde.exception.MessageDecoderException;
import com.cictec.middleware.tde.rm.protocol.TerminalMessage.Header;

/**
 * 消息解码器抽象类
 * 
 * @author Administrator
 *
 */
public interface MessageDecoder {

	TerminalMessage decode(Header header, ByteBuffer in, IoSession session) throws MessageDecoderException;

}
